package com.fzhucc.modules.subject.repository;

import com.fzhucc.modules.subject.domain.entity.SubjectHighfieldsType1;
import com.fzhucc.modules.subject.domain.entity.SubjectHighfieldsType2;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import javax.annotation.Nullable;
import java.util.List;

/**
* @website https://fzhucc.com
* @author yyg
* @since 2022-09-26 00:00:00
**/
public interface SubjectHighfieldsType1Repository extends JpaRepository<SubjectHighfieldsType1, Integer>, JpaSpecificationExecutor<SubjectHighfieldsType1> {

    @Nullable
    @Query("SELECT o from SubjectHighfieldsType1 as o where o.type=:type")
    List<SubjectHighfieldsType1> findByType(String type);
}